import { createRouter, createWebHashHistory } from 'vue-router'

import Layout from '../views/Layout.vue'
const routes = [
  {
    path: '/',
    component: Layout,
    redirect:'/grouping',
    children:[
      {
        path:'grouping',
        name: "grouping",
        component: () => import('@/views/Grouping/index.vue')
      },
      {
        path:'cardNumber',
        name: "cardNumber",
        component:() => import('@/views/CardNumber/index.vue')
      },
      {
        path:'achievement',
        name: "achievement",
        component:() => import('@/views/Achievement/index.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export  default  router
